﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace Project_Origin
{
    public partial class PO_Confirm_Form : Form
    {
        public delegate void childclose();
        public event childclose closefather;
        public PO_Confirm_Form()
        {
            InitializeComponent();
        }

        private void PO_Button_No_Click(object sender, EventArgs e)
        {
            this.Hide();
        }

        private void PO_Button_Yes_Click(object sender, EventArgs e)
        {
            this.Dispose();
            this.Close();
            PO_ModeSelect_Menu pO_ModeSelect_Menu = new PO_ModeSelect_Menu();
            pO_ModeSelect_Menu.Show();
        }

        private void PO_Confirm_Form_FormClosed(object sender, FormClosedEventArgs e)
        {
            closefather();
            PO_Classical_Mode_UI pO_Classical_Mode_UI = new PO_Classical_Mode_UI();
            pO_Classical_Mode_UI = (PO_Classical_Mode_UI)this.Owner;
            this.Dispose();
            this.Close();
        }

        private void PO_Confirm_Form_Load(object sender, EventArgs e)
        {

        }
    }
}
